//
//  KKAppUtils.h
//  DoMi
//
//  Created by 康凯 on 2016/11/11.
//  Copyright © 2016年 kk. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface KKAppUtils : NSObject
//字符串是否为空
+ (BOOL) isEmptyString:(NSString *)string;
//时间戳转时间
+ (NSString *)timeStampToDate:(NSString *)time;
//时间戳转时间
+ (NSString *)timeStampToDate1:(NSString *)time;
//获取当前显示的viewcontroller
+ (UIViewController *)getCurrentVisiableVC:(UIView *)currentView;
//计算文字尺寸
+ (CGSize)sizeWithText:(NSString *)text font:(UIFont *)font maxSize:(CGSize)maxSize;
//toast
+ (void) toast:(NSString *)str;
+ (void) toastLongText:(NSString *)str;
//秒转时分秒
+(NSString *)timeformatFromSeconds:(int)seconds;
//获取当前时间
+(NSString *)getCurrentTime:(NSString *)formatter;
//计算传过来时间距离当前时间秒数
+(NSTimeInterval)getCurrentSecond:(NSString *)date formatter:(NSString *)formatter;
@end
